package com.panfeng.xcloud.common.core.enums;

public enum DataDictionaryTypeEnum {
    registerRank("registerRank", "积分排名"),
    currentFirstchar("currentFirstchar", "userId首字母"),
    firstNum("firstNum", "userId首数字"),
    verify_code_switch("verify_code_switch", "验证码开关"),
    version("version", "版本号"),
    QUANT_DEFAULT_ORDER_POSITION("QUANT_DEFAULT_ORDER_POSITION", "首单额度最小值"),
    QUANT_DEFAULT_MAKE_ORDER_NUM("QUANT_DEFAULT_MAKE_ORDER_NUM", "做单数量"),
    point_card_ratio("point_card_ratio", "点卡兑换比例"),
    buy_active_code_price("buy_active_code_price", "购买激活码金额"),
    active_days("active_days", "激活码有效天数"),
    QUANT_DEFAULT_STOP_PROFIT_RATIO("QUANT_DEFAULT_STOP_PROFIT_RATIO","止盈比例"),
    QUANT_DEFAULT_STOP_PROFIT_BACK_RATIO("QUANT_DEFAULT_STOP_PROFIT_BACK_RATIO","止盈回调"),
    QUANT_DEFAULT_ADD_POSITION_1("QUANT_DEFAULT_ADD_POSITION_1","首次补仓"),
    QUANT_DEFAULT_ADD_POSITION_2("QUANT_DEFAULT_ADD_POSITION_2","第2次补仓"),
    QUANT_DEFAULT_ADD_POSITION_3("QUANT_DEFAULT_ADD_POSITION_3","第3次补仓"),
    QUANT_DEFAULT_ADD_POSITION_4("QUANT_DEFAULT_ADD_POSITION_4","第4次补仓"),
    QUANT_DEFAULT_ADD_POSITION_5("QUANT_DEFAULT_ADD_POSITION_5","第5次补仓"),
    QUANT_DEFAULT_ADD_POSITION_6("QUANT_DEFAULT_ADD_POSITION_6","第6次补仓"),
    QUANT_DEFAULT_ADD_POSITION_7("QUANT_DEFAULT_ADD_POSITION_7","第7次补仓"),
    QUANT_DEFAULT_ADD_POSITION_8("QUANT_DEFAULT_ADD_POSITION_8","第8次补仓"),
    QUANT_DEFAULT_ADD_POSITION_9("QUANT_DEFAULT_ADD_POSITION_9","第9次补仓"),
    QUANT_DEFAULT_ADD_POSITION_10("QUANT_DEFAULT_ADD_POSITION_10","第10次补仓"),
    QUANT_DEFAULT_ADD_POSITION_11("QUANT_DEFAULT_ADD_POSITION_11","第11次补仓"),
    QUANT_DEFAULT_ADD_POSITION_12("QUANT_DEFAULT_ADD_POSITION_12","第12次补仓"),
    QUANT_DEFAULT_ADD_POSITION_13("QUANT_DEFAULT_ADD_POSITION_13","第13次补仓"),
    QUANT_DEFAULT_ADD_POSITION_14("QUANT_DEFAULT_ADD_POSITION_14","第14次补仓"),
    QUANT_DEFAULT_ADD_POSITION_15("QUANT_DEFAULT_ADD_POSITION_15","第15次补仓"),
    QUANT_DEFAULT_ADD_POSITION_16("QUANT_DEFAULT_ADD_POSITION_16","第16次补仓"),
    QUANT_DEFAULT_ADD_POSITION_17("QUANT_DEFAULT_ADD_POSITION_17","第17次补仓"),
    QUANT_DEFAULT_ADD_POSITION_18("QUANT_DEFAULT_ADD_POSITION_18","第18次补仓"),
    QUANT_DEFAULT_ADD_POSITION_19("QUANT_DEFAULT_ADD_POSITION_19","第19次补仓"),
    QUANT_DEFAULT_ADD_POSITION_20("QUANT_DEFAULT_ADD_POSITION_20","第20次补仓"),
    QUANT_DEFAULT_ADD_POSITION_BACK_RATIO("QUANT_DEFAULT_ADD_POSITION_BACK_RATIO", "补仓回调"),
    QUANT_DEFAULT_STRATEGY_TYPE("QUANT_DEFAULT_STRATEGY_TYPE", "策略循环"),
    tx_fee("tx_fee", "交易手续费"),
    invite_url("invite_url", "推广链接"),
    active_user_need_amount("active_user_need_amount", "变成有效用户需要购买点卡数量"),
    huobi_rest_host("huobi_rest_host", "火币合约rest请求url"),
    huobi_websocket_host("huobi_websocket_host", "火币websocket请求url"),
    huobi_auth_host("huobi_auth_host", "火币通用rest请求url"),
    StopProfitBackRatioMax("StopProfitBackRatioMax", "止盈回调最大范围"),
    AddPositionBackRatioMin("AddPositionBackRatioMin", "补仓跌幅最小范围"),
    SEND_ERROR_EMAIL("SEND_ERROR_EMAIL", "异常信息接收邮箱"),
    QUANT_DEFAULT_STOP_LOSSES_RATIO("QUANT_DEFAULT_STOP_LOSSES_RATIO", "保证金硬止损率"),
    HUOBI_FEE("HUOBI_FEE", "火币手续费"),
    add_position_times_model_switch("add_position_times_model_switch", "补仓倍数模式(0.固定倍数 1.动态倍数)"),
    add_position_dynamic_times("add_position_dynamic_times", "补仓动态倍数"),
    add_position_fix_times("add_position_fix_times", "补仓固定倍数"),
    anti_add_position_times_model_switch("anti_add_position_times_model_switch", "加仓倍数模式(0.固定倍数 1.动态倍数)"),
    anti_add_position_dynamic_times("anti_add_position_dynamic_times", "加仓动态倍数"),
    anti_add_position_fix_times("anti_add_position_fix_times", "加仓固定倍数"),
    profit_delete_point_ratio("profit_delete_point_ratio", "盈利时扣除点卡比例"),
    profit_shifting("profit_shifting", "利润转移阈值"),
    default_lever_rate("default_lever_rate", "默认杠杆倍数"),
    BINANCE_FEE("BINANCE_FEE", "币安手续费"),
    binance_rest_host("binance_rest_host", "币安合约rest请求url"),
    binance_auth_host("binance_auth_host", "币安通用rest请求url"),
    QUANT_DEFAULT_STOP_LOSS_PROFIT("QUANT_DEFAULT_STOP_LOSS_PROFIT", "浮动盈亏默认止损线"),
    buy_stop_loss_limit("buy_stop_loss_limit", "多单止损次数限定值"),
    sell_stop_loss_limit("sell_stop_loss_limit", "空单止损次数限定值"),
    buyStopRate("buyStopRate", "多单设定止损涨跌幅"),
    sellStopRate("sellStopRate", "空单设定止损涨跌幅"),
    getOffAddPositionNum("getOffAddPositionNum", "解套风控需达到的补仓次数"),
    getOffNeedTime("getOffNeedTime", "解套风控的指定解套时间(毫秒时间戳)"),
    getOffProfitLine("getOffProfitLine", "解套风控的指定解套浮动盈亏线"),
    totalStopLossNumLimitAddNum("totalStopLossNumLimitAddNum", "总体止损次数限制风控的补仓次数"),
    QUANT_DEFAULT_ANTI_MAKE_ORDER_NUM("QUANT_DEFAULT_ANTI_MAKE_ORDER_NUM", "逆向做单数量"),
    QUANT_DEFAULT_ANTI_STOP_PROFIT_RATIO("QUANT_DEFAULT_ANTI_STOP_PROFIT_RATIO", "逆向止盈比例"),
    QUANT_DEFAULT_ANTI_ADD_POSITION_1("QUANT_DEFAULT_ANTI_ADD_POSITION_1", "逆向首次加仓"),
    QUANT_DEFAULT_ANTI_ADD_POSITION_2("QUANT_DEFAULT_ANTI_ADD_POSITION_2", "逆向第2次加仓"),
    QUANT_DEFAULT_ANTI_ADD_POSITION_3("QUANT_DEFAULT_ANTI_ADD_POSITION_3", "逆向第3次加仓"),
    QUANT_DEFAULT_ANTI_ADD_POSITION_4("QUANT_DEFAULT_ANTI_ADD_POSITION_4", "逆向第4次加仓"),
    QUANT_DEFAULT_ANTI_ADD_POSITION_5("QUANT_DEFAULT_ANTI_ADD_POSITION_5", "逆向第5次加仓"),
    QUANT_DEFAULT_ANTI_ADD_POSITION_6("QUANT_DEFAULT_ANTI_ADD_POSITION_6", "逆向第6次加仓"),
    QUANT_DEFAULT_ANTI_ADD_POSITION_7("QUANT_DEFAULT_ANTI_ADD_POSITION_7", "逆向第7次加仓"),
    QUANT_DEFAULT_ANTI_ADD_POSITION_8("QUANT_DEFAULT_ANTI_ADD_POSITION_8", "逆向第8次加仓"),
    QUANT_DEFAULT_ANTI_ADD_POSITION_9("QUANT_DEFAULT_ANTI_ADD_POSITION_9", "逆向第9次加仓"),
    QUANT_DEFAULT_ANTI_ADD_POSITION_10("QUANT_DEFAULT_ANTI_ADD_POSITION_10", "逆向第10次加仓"),
    new_user_init_point_balance("new_user_init_point_balance", "新注册用户初始点卡余额"),
    start_robot_point_balance_min("start_robot_point_balance_min", "开动机器人所需最低点卡余额"),
    okex_rest_host("okex_rest_host", "OKEX合约rest请求url"),
    default_rebate_level("default_rebate_level", "直推等级默认参数"),

    dynamic_position_times1("dynamic_position_times1", "首次补仓动态倍数(以首单金额为基础)"),
    dynamic_position_times2("dynamic_position_times2", "第2次补仓动态倍数(以首单金额为基础)"),
    dynamic_position_times3("dynamic_position_times3", "第3次补仓动态倍数(以首单金额为基础)"),
    dynamic_position_times4("dynamic_position_times4", "第4次补仓动态倍数(以首单金额为基础)"),
    dynamic_position_times5("dynamic_position_times5", "第5次补仓动态倍数(以首单金额为基础)"),
    dynamic_position_times6("dynamic_position_times6", "第6次补仓动态倍数(以首单金额为基础)"),
    dynamic_position_times7("dynamic_position_times7", "第7次补仓动态倍数(以首单金额为基础)"),
    dynamic_position_times8("dynamic_position_times8", "第8次补仓动态倍数(以首单金额为基础)"),
    dynamic_position_times9("dynamic_position_times9", "第9次补仓动态倍数(以首单金额为基础)"),
    dynamic_position_times10("dynamic_position_times10", "第10次补仓动态倍数(以首单金额为基础)"),
    dynamic_position_times11("dynamic_position_times11", "第11次补仓动态倍数(以首单金额为基础)"),
    dynamic_position_times12("dynamic_position_times12", "第12次补仓动态倍数(以首单金额为基础)"),
    dynamic_position_times13("dynamic_position_times13", "第13次补仓动态倍数(以首单金额为基础)"),
    dynamic_position_times14("dynamic_position_times14", "第14次补仓动态倍数(以首单金额为基础)"),
    dynamic_position_times15("dynamic_position_times15", "第15次补仓动态倍数(以首单金额为基础)"),
    dynamic_position_times16("dynamic_position_times16", "第16次补仓动态倍数(以首单金额为基础)"),
    dynamic_position_times17("dynamic_position_times17", "第17次补仓动态倍数(以首单金额为基础)"),
    dynamic_position_times18("dynamic_position_times18", "第18次补仓动态倍数(以首单金额为基础)"),
    dynamic_position_times19("dynamic_position_times19", "第19次补仓动态倍数(以首单金额为基础)"),
    dynamic_position_times20("dynamic_position_times20", "第20次补仓动态倍数(以首单金额为基础)"),
    position_times("position_times", "倍投倍数"),
    anti_position_times("anti_position_times", "逆向加仓倍投倍数"),
    ;

    private String code;
    private String message;

    private DataDictionaryTypeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static DataDictionaryTypeEnum getByValue(String value) {
        for (DataDictionaryTypeEnum code : values()) {
            if (code.getCode().equals(value)) {
                return code;
            }
        }
        return null;
    }

}
